/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.List;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.gui.Gui;
/*     */ import net.minecraft.client.gui.GuiButton;
/*     */ import net.minecraft.client.gui.ScaledResolution;
/*     */ import net.minecraft.client.gui.inventory.GuiContainer;
/*     */ import net.minecraft.client.gui.inventory.GuiInventory;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.client.renderer.Tessellator;
/*     */ import net.minecraft.entity.EntityLivingBase;
/*     */ import net.minecraft.entity.monster.EntityZombie;
/*     */ import net.minecraft.inventory.IInventory;
/*     */ import net.minecraft.inventory.Slot;
/*     */ import net.minecraft.util.math.MathHelper;
/*     */ import net.minecraft.world.World;
/*     */ import net.minecraftforge.fml.client.FMLClientHandler;
/*     */ import org.lwjgl.input.Mouse;
/*     */ 
/*     */ 
/*     */ 
/*     */ public class ou
/*     */   extends GuiContainer
/*     */   implements da
/*     */ {
/*     */   private List<na<String, xea.eos/moe/dragoncore/ija>> t;
/*     */   private eos/moe/dragoncore/zs d;
/*     */   private EntityZombie z;
/*  31 */   private String i = "";
/*     */   
/*  33 */   private na<Float, Float> w = new na<>(Float.valueOf(27.0F), Float.valueOf(700.0F));
/*  34 */   private na<Float, Float> q = new na<>(Float.valueOf(-20.0F), Float.valueOf(-50.0F));
/*  35 */   private float g = 30.0F;
/*     */   
/*     */   public ou(IInventory iInventory1, IInventory iInventory2) {
/*  38 */     super(new tx(iInventory1, iInventory2));
/*  39 */     this.t = new ArrayList<>();
/*  40 */     xea.m.h().forEach((str, eos/moe/dragoncore/ija1) -> this.t.add(new na<>(str, eos/moe/dragoncore/ija1)));
/*     */ 
/*     */     
/*  43 */     this.z = new EntityZombie((World)FMLClientHandler.instance().getWorldClient());
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_73866_w_() {
/*  48 */     ScaledResolution scaledResolution = new ScaledResolution(this.field_146297_k);
/*  49 */     this.field_146999_f = scaledResolution.func_78326_a();
/*  50 */     this.field_147000_g = scaledResolution.func_78328_b();
/*  51 */     super.func_73866_w_();
/*  52 */     int i = 18; int j;
/*  53 */     for (j = 0; j < 3; j++) {
/*  54 */       for (int m = 0; m < 9; m++) {
/*  55 */         Slot slot = this.field_147002_h.field_75151_b.get(m + j * 9);
/*  56 */         slot.field_75221_f = this.field_146295_m + 1 - 76 - 5 + j * i;
/*     */       } 
/*     */     } 
/*  59 */     for (j = 0; j < 9; j++) {
/*  60 */       Slot slot = this.field_147002_h.field_75151_b.get(j + 27);
/*  61 */       slot.field_75221_f = this.field_146295_m + 1 - 5 - i;
/*     */     } 
/*  63 */     j = this.field_146294_l - 162 - 25;
/*  64 */     int k = this.field_146295_m - 15 - 14 - 15 + 26;
/*  65 */     j = MathHelper.func_76125_a(j, 0, 200);
/*  66 */     this.d = new eos/moe/dragoncore/zs(this, this.field_146294_l - 100, 12, 95, Math.max(0, k), 14, this.field_146294_l, this.field_146295_m, this);
/*     */     
/*  68 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, this.field_146294_l / 2 - 20 - 20, this.field_146295_m - 50, "←"));
/*  69 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, this.field_146294_l / 2 + 20, this.field_146295_m - 50, "→"));
/*  70 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, this.field_146294_l - 120, this.field_146295_m / 2 - 20 - 20, "↑"));
/*  71 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, this.field_146294_l - 120, this.field_146295_m / 2 + 20, "↓"));
/*  72 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, this.field_146294_l / 2 - 20 - 20, 10, "-"));
/*  73 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, this.field_146294_l / 2 + 20, 10, "+"));
/*     */     
/*  75 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, 0, this.field_146295_m / 2 - 20, "←←"));
/*  76 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, 40, this.field_146295_m / 2 - 20, "→→"));
/*     */     
/*  78 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, 20, this.field_146295_m / 2 - 20 - 20, "↑↑"));
/*  79 */     this.field_146292_n.add(new eos/moe/dragoncore/sq(this, 0, 20, this.field_146295_m / 2, "↓↓"));
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_146976_a(float f, int i, int j) {
/*  84 */     func_73734_a(0, 0, this.field_146294_l, this.field_146295_m, 1811939328);
/*     */ 
/*     */     
/*  87 */     float f1 = (float)(System.currentTimeMillis() / 10.0D % 360.0D);
/*  88 */     GlStateManager.func_179094_E();
/*  89 */     GlStateManager.func_179147_l();
/*  90 */     GlStateManager.func_179126_j();
/*     */     
/*  92 */     GlStateManager.func_179109_b(this.field_146294_l / 2.0F + ((Float)this.q.q).floatValue(), this.field_146295_m / 1.2F + ((Float)this.q.g).floatValue(), 500.0F);
/*     */ 
/*     */ 
/*     */     
/*  96 */     GlStateManager.func_179114_b(((Float)this.w.g).floatValue(), 1.0F, 0.0F, 0.0F);
/*  97 */     GlStateManager.func_179114_b(((Float)this.w.q).floatValue(), 0.0F, 1.0F, 0.0F);
/*     */     
/*  99 */     GlStateManager.func_179131_c(1.0F, 1.0F, 1.0F, 1.0F);
/* 100 */     this.z.func_96094_a(this.i);
/* 101 */     GuiInventory.func_147046_a(0, 0, (int)this.g, 0.0F, 0.0F, (EntityLivingBase)this.z);
/*     */ 
/*     */ 
/*     */     
/* 105 */     GlStateManager.func_179097_i();
/* 106 */     GlStateManager.func_179084_k();
/* 107 */     GlStateManager.func_179121_F();
/* 108 */     this.d.v(i, j, f);
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void func_146979_b(int i, int j) {
/* 114 */     func_191948_b(i, j);
/*     */   }
/*     */ 
/*     */   
/*     */   public void drag(String str, int i, int j) {}
/*     */ 
/*     */   
/*     */   public class eos/moe/dragoncore/zs
/*     */     extends bx
/*     */   {
/* 124 */     public int z = -1;
/*     */     
/*     */     private String i;
/*     */     private Minecraft w;
/*     */     private da q;
/*     */     
/*     */     public eos/moe/dragoncore/zs(ou ou1, int i, int j, int k, int m, int n, int i1, int i2, da da1) {
/* 131 */       super(Minecraft.func_71410_x(), k, m, j, j + m, i, n, i1, i2);
/* 132 */       this.w = Minecraft.func_71410_x();
/* 133 */       this.q = da1;
/*     */     }
/*     */ 
/*     */     
/*     */     public int z() {
/* 138 */       return ou.v(this.g).size();
/*     */     }
/*     */ 
/*     */     
/*     */     public void v(int i, boolean bool) {
/* 143 */       if (i >= ou.v(this.g).size())
/* 144 */         return;  this.z = i;
/* 145 */       ou.v(this.g, ((xea.eos/moe/dragoncore/ija)((na)ou.v(this.g).get(this.z)).g).z());
/*     */     }
/*     */ 
/*     */ 
/*     */     
/*     */     public boolean v(int i) {
/* 151 */       return (this.z == i);
/*     */     }
/*     */ 
/*     */     
/*     */     public void v(int i, int j, float f) {
/* 156 */       super.v(i, j, f);
/* 157 */       if (this.i != null);
/*     */ 
/*     */       
/* 160 */       if (!Mouse.isButtonDown(0) && this.i != null) {
/* 161 */         this.q.drag(this.i, i, j);
/* 162 */         this.i = null;
/*     */       } 
/*     */     }
/*     */ 
/*     */ 
/*     */ 
/*     */     
/*     */     public void v(int i, int j, int k, int m, boolean bool, Tessellator tessellator) {
/* 170 */       if (i >= ou.v(this.g).size())
/*     */         return; 
/* 172 */       if (this.z == i) {
/* 173 */         Gui.func_73734_a(this.u + 1, k, this.h, k + 14, -120);
/* 174 */       } else if (bool) {
/* 175 */         Gui.func_73734_a(this.u + 1, k, this.h, k + 14, -3355444);
/*     */       } 
/*     */ 
/*     */       
/* 179 */       String str = ((xea.eos/moe/dragoncore/ija)((na)ou.v(this.g).get(i)).g).z();
/*     */       
/* 181 */       if (this.z == i) {
/* 182 */         this.w.field_71466_p.func_78276_b(str, this.u + 2, k + 2, -16777216);
/*     */       } else {
/* 184 */         this.w.field_71466_p.func_78276_b(str, this.u + 2, k + 2, 16777215);
/*     */       } 
/*     */     }
/*     */   }
/*     */   
/*     */   public class eos/moe/dragoncore/sq extends GuiButton {
/*     */     private long q;
/*     */     
/*     */     public eos/moe/dragoncore/sq(ou ou1, int i, int j, int k, String str) {
/* 193 */       super(i, j, k, 20, 20, str);
/*     */     }
/*     */ 
/*     */     
/*     */     public void func_191745_a(Minecraft minecraft, int i, int j, float f) {
/* 198 */       super.func_191745_a(minecraft, i, j, f);
/* 199 */       if (this.q != 0L) {
/* 200 */         na na; long l = System.currentTimeMillis() - this.q;
/* 201 */         float f1 = (float)l / 10.0F;
/* 202 */         switch (this.field_146126_j) {
/*     */           case "↑":
/* 204 */             na = ou.z(this.g); na.g = (B)Float.valueOf(((Float)na.g).floatValue() + f1);
/*     */             break;
/*     */           
/*     */           case "↓":
/* 208 */             na = ou.z(this.g); na.g = (B)Float.valueOf(((Float)na.g).floatValue() - f1);
/*     */             break;
/*     */           
/*     */           case "←":
/* 212 */             na = ou.z(this.g); na.q = (A)Float.valueOf(((Float)na.q).floatValue() - f1);
/*     */             break;
/*     */           
/*     */           case "→":
/* 216 */             na = ou.z(this.g); na.q = (A)Float.valueOf(((Float)na.q).floatValue() + f1);
/*     */             break;
/*     */           
/*     */           case "-":
/* 220 */             ou.v(this.g, ou.v(this.g) - f1);
/*     */             break;
/*     */           
/*     */           case "+":
/* 224 */             ou.v(this.g, ou.v(this.g) + f1);
/*     */             break;
/*     */           
/*     */           case "↑↑":
/* 228 */             na = ou.v(this.g); na.g = (B)Float.valueOf(((Float)na.g).floatValue() - f1);
/*     */             break;
/*     */           
/*     */           case "↓↓":
/* 232 */             na = ou.v(this.g); na.g = (B)Float.valueOf(((Float)na.g).floatValue() + f1);
/*     */             break;
/*     */           
/*     */           case "←←":
/* 236 */             na = ou.v(this.g); na.q = (A)Float.valueOf(((Float)na.q).floatValue() - f1);
/*     */             break;
/*     */           
/*     */           case "→→":
/* 240 */             na = ou.v(this.g); na.q = (A)Float.valueOf(((Float)na.q).floatValue() + f1);
/*     */             break;
/*     */         } 
/*     */         
/* 244 */         this.q = System.currentTimeMillis();
/*     */       } 
/*     */     }
/*     */ 
/*     */     
/*     */     public void func_146118_a(int i, int j) {
/* 250 */       this.q = 0L;
/*     */     }
/*     */ 
/*     */     
/*     */     public boolean func_146116_c(Minecraft minecraft, int i, int j) {
/* 255 */       if (super.func_146116_c(minecraft, i, j)) {
/* 256 */         this.q = System.currentTimeMillis();
/*     */       }
/* 258 */       return super.func_146116_c(minecraft, i, j);
/*     */     }
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ou.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */